/*
 * @Author: mikey.zhaopeng 
 * @Date: 2018-12-30 10:24:53 
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-01-12 10:34:14
 */
import 'package:flutter/material.dart';
import './constants.dart' show AppColors;
import './pages/tab_page.dart' show TabPage;
//搜索页面
import './pages/search/search.dart' show SearchPage;
// 游戏下载管理页面
import './pages/downgame/downgame.dart' show DownGame;
void main() => runApp(TcApp());

class TcApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: '天橙游玩',
      routes: <String,WidgetBuilder>{
        '/search':(BuildContext context) =>SearchPage(),
        '/down':(BuildContext context)=>DownGame(),
      },
      theme: ThemeData(
        primaryColor:Color(AppColors.primaryColor),
        iconTheme: IconThemeData(color: Color(AppColors.appBarIconTheme)),
      ),
      home: TabPage(),
    );
  }
}
